﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SharpSoft.WPF
{
    /// <summary>
    /// ConfirmDialog.xaml 的交互逻辑
    /// </summary>
    public partial class ConfirmDialog : SharpSoft.WPF.Masks.MaskContainer
    {
        public ConfirmDialog()
        {
            this.DataContext = this;
            InitializeComponent();
        }
        public string Text
        {
            get { return (string)GetValue(TextProperty); }
            set { SetValue(TextProperty, value); }
        }

        public static readonly DependencyProperty TextProperty =
            DependencyProperty.Register("Text", typeof(string), typeof(ConfirmDialog), new PropertyMetadata(default(string)));



        /// <summary>
        /// 确认按钮的文本
        /// </summary>
        public string ConfirmText
        {
            get { return (string)GetValue(ConfirmTextProperty); }
            set { SetValue(ConfirmTextProperty, value); }
        }

        public static readonly DependencyProperty ConfirmTextProperty =
            DependencyProperty.Register("ConfirmText", typeof(string), typeof(ConfirmDialog), new PropertyMetadata("确认"));
        /// <summary>
        /// 取消按钮的文本
        /// </summary>
        public string DeclineText
        {
            get { return (string)GetValue(DeclineTextProperty); }
            set { SetValue(DeclineTextProperty, value); }
        }

        public static readonly DependencyProperty DeclineTextProperty =
            DependencyProperty.Register("DeclineText", typeof(string), typeof(ConfirmDialog), new PropertyMetadata("取消"));


    }
}
